<?php

namespace App\Models\ModelFilters;

use EloquentFilter\ModelFilter;

class GoodsTypeFilter extends ModelFilter
{
    public $relations = [];

    public function pid($pid)
    {
        return $this->where('pid', $pid);
    }

    public function goodsName($goodsName)
    {
        return $this->whereLike('goods_name', $goodsName);
    }

}
